namespace LiJ.Common.Core
{
	/// <summary>
	/// 通用应用账号配置信息  
	/// </summary>
	public class AppConfig
	{
		/// <summary>
		/// 应用账号AppId
		/// </summary>
		public string AppId
		{
			get;
			set;
		}

		/// <summary>
		/// 应用账号AppSecret
		/// </summary>
		public string AppSecret
		{
			get;
			set;
		}

		/// <summary>
		/// 操作管理类型
		/// </summary>
		public AppOperateMode OperateMode
		{
			get;
			set;
		}

		/// <summary>
		///  当 OperateMode = AppOperateMode.ByAgent 时
		///  代理应用的账号AppId
		/// </summary>
		public string ByAppId
		{
			get;
			set;
		}

		/// <summary>
		/// 构造函数
		/// </summary>
		public AppConfig()
		{
		}

		/// <summary>
		///  构造函数
		/// </summary>
		/// <param name="appId"></param>
		/// <param name="appSecret"></param>
		public AppConfig(string appId, string appSecret)
		{
            AppId = appId;
            AppSecret = appSecret;
		}
	}
}
